package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.OrderList;
import com.yunshang.shoppingmall.mapper.OrderListMapper;
import com.yunshang.shoppingmall.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("OrderListService")
public class OrderListServiceImpl implements OrderListService {
    @Autowired
    OrderListMapper orderListMapper;


    @Override
    public List<OrderList> selectOrderList(Integer userId, Integer orderStatus) {
        return orderListMapper.selectOrderList(userId,orderStatus);
    }

    @Override
    public List<OrderList> selectOrderListComment(Integer userId) {
        return orderListMapper.selectOrderListComment(userId);
    }

    @Override
    public OrderList selectOrder(String orderNo) {
        return orderListMapper.selectOrder(orderNo);
    }
}
